{template 'header'}
<script type="text/javascript">var module_id= {$moduleid},item_id={$itemid},content_id='content',img_max_width={$MOD[max_width]};</script>
 
<!--面包屑导航-->
<div class="wrap mb-10 mt-10 clearfix">
    <div class="cai_pos">当前位置: <a href="{$MODULE[1][linkurl]}">首页</a> &raquo; <a href="{$MOD[linkurl]}">{$MOD[name]}</a> &raquo; {cat_pos($CAT, ' &raquo; ')}<div class="fr"><a href="{$MODULE[2][linkurl]}{$DT[file_my]}?mid={$moduleid}&action=add&catid={$catid}" rel="nofollow"><img src="{DT_SKIN}image/btn_add.gif" width="81" height="20" alt="发布信息" style="margin-top:6px;"/></a></div>
    </div>
</div>

<div class="m" >

   <!--企业导航-->
    <div class="idx-menu clearfix mt-15 qyd">
      <ul>
        <li class="idx-menu-logo"> 
        <a href="{userurl($username)}">
          <div class="menu-ewm-logo" id="menu-ewm-logo"><img src="{if $member[thumb]}{$member[thumb]}{else}{DT_SKIN}caiimg/no-logo.png{/if}" width="90" height="45" alt="" onerror="this.src='{DT_SKIN}caiimg/no-logo.png';"/></div>
          </a>
          <div class="menu-ewmlogo" style="left: 150.5px; top: 206px; display: none;">
            <ul>
              <li id="liewm"> <a href="{userurl($username)}" alt="{$company}形象图"><img src="{if $member[thumb]}{$member[thumb]}{else}{DT_SKIN}caiimg/no-logo2.png{/if}" width="180" height="180" alt="" onerror="this.src='{DT_SKIN}caiimg/no-logo.png';"/></a></li>
            </ul>
          </div>
          <script>$("#menu-ewm-logo").mouseover(function(){$(".menu-ewmlogo").css("left",$("#menu-ewm-logo").offset().left+10);$(".menu-ewmlogo").css("top",$("#menu-ewm-logo").offset().top+10);$(".menu-ewmlogo").show();});$("#menu-ewm-logo").mouseout(function(){$(".menu-ewmlogo").hide();});</script> 
        </li>
        <li class="idx-menu-comname">
     <div class="menu-comname"><a href="{userurl($username)}" title="{$company}商铺" target="_blank">{$company}</a></div>
          <a href="#">
          <div class="menu-ewm-img" id="menu-ewm-img"></div>
          </a>
          <div class="menu-ewm" style="left: 409.5px; top: 206px; display: none;">
            <ul>
              <li id="liewm"> <a href="{userurl($username)}" alt="{$company}手机版二维码"><img src="{DT_PATH}api/qrcode.png.php?auth={userurl($username)}" width="180" height="180" alt="{$company}二维码"></a></li>
              <li>扫一扫，进入手机网站</li>
            </ul>
          </div>
          <script>$("#menu-ewm-img").mouseover(function(){$(".menu-ewm").css("left",$("#menu-ewm-img").offset().left+10);$(".menu-ewm").css("top",$("#menu-ewm-img").offset().top+10);$(".menu-ewm").show();});$("#menu-ewm-img").mouseout(function(){$(".menu-ewm").hide();});</script>
         </li>
        <li class="idx-menu-ge"></li>
        <li class="idx-menu-list">
          <div class="menu-list-div">
            <ul>
              <li class="first"><a href="{userurl($username)}" target="_blank">商铺首页</a></li>
              <li><a href="{userurl($username, 'file=sell')}" target="_blank">产品库存</a></li>
              <li><a href="{userurl($username, 'file=honor')}" target="_blank">资质证书</a></li>
              <li><a href="{userurl($username, 'file=photo')}" target="_blank">企业相册</a></li>
              <li><a href="{userurl($username, 'file=link')}" target="_blank">企业友链</a></li>
              <li><a href="{userurl($username, 'file=introduce')}" target="_blank">企业介绍</a></li>
              <li><a href="{userurl($username, 'file=contact')}" target="_blank">联系我们</a></li>
            </ul>
          </div>
        </li>
      </ul>
    </div>

    <!--企业导航-->
    <div class="container fl">
      <div class="box01 mt-15">
        <div class="header">
          <h3>采购详情</h3>
        </div>
        <div class="buyshow clearfix">
          <div class="buyImg fl">
            <div id="mid_pos"></div>
            <div class="fl" id="mid_div" onmouseover="SAlbum();" onmouseout="HAlbum();" onclick="PAlbum(Dd('mid_pic'));"> <img src="{$albums[0]}" width="310" height="310" id="mid_pic"/><span id="zoomer"></span> </div>
            <div class="thumb-list fl">
              <ul>
                {loop $thumbs $k $v}
                <li><img src="{$v}" width="60" height="60" onmouseover="if(this.src.indexOf('nopic60.gif')==-1)Album({$k}, '{$albums[$k]}');" class="{if $k}ab_im{else}ab_on{/if}" id="t_{$k}"/></li>
                {/loop}
                <li onclick="PAlbum(Dd('mid_pic'));"><img src="{DT_SKIN}image/zoom.png"/></li>
              </ul>
            </div>
          </div>
          <div class="buyInfo cldl fr">
            <div id="big_div" style="display:none;"><img src="" id="big_pic"/></div>
            <h1 class="title_trade" id="title">{$title}</h1>
            <div class="time_out">
        <h2>倒计时：
<span id="timer"></span>
{if $totime}
        <script type="text/javascript">  
function TimeTo(dd){  
    var t = new Date(dd),//取得指定时间的总毫秒数  
        n = new Date().getTime(),//取得当前毫秒数  
        c = t - n;//得到时间差  
    if(c<=0){//如果差小于等于0  也就是过期或者正好过期，则推出程序  
        document.getElementById('timer').innerHTML ='本次采购已经结束';  
        clearInterval(window['ttt']);//清除计时器  
        return;//结束执行  
    }  
    var ds = 60*60*24*1000,//一天共多少毫秒  
        d = parseInt(c/ds),//总毫秒除以一天的毫秒 得到相差的天数  
        h = parseInt((c-d*ds)/(3600*1000)),//然后取完天数之后的余下的毫秒数再除以每小时的毫秒数得到小时  
        m = parseInt((c - d*ds - h*3600*1000)/(60*1000)),//减去天数和小时数的毫秒数剩下的毫秒，再除以每分钟的毫秒数，得到分钟数  
        s = parseInt((c-d*ds-h*3600*1000-m*60*1000)/1000);//得到最后剩下的毫秒数除以1000 就是秒数，再剩下的毫秒自动忽略即可  
        document.getElementById('timer').innerHTML = ' <b>'+d+'</b> 天 <b>'+h+'</b></b> : <b>'+m+'</b> : <b class="ss">'+s+'</b>';//最后这句讲定义好的显示 更新到 ID为 timer的 div中  
}  
(function(){  
    window['ttt']=setInterval(function(){  
    TimeTo('{date('Y/m/d', $totime)} 23:59:59');//定义倒计时的结束时间，注意格  
    },1000);//定义计时器，每隔1000毫秒 也就是1秒 计算并更新 div的显示  
})();  
</script>  
  {else}
      长期有效（请联系我们）         
      {/if}
 </h2>
    <span class="time_tip"></span>
</div>
            <dl>
              <dt class="buypro_list0">发布时间：</dt>
              <dd>{if $editdate}{$editdate}{/if} - 结束日期：&nbsp;&nbsp;{if $todate}{$todate}{else}长期有效{/if}{if $expired} <span class="f_red">[已过期]</span>{/if}</dd>
              <dt class="buypro_list1">需求数量：</dt> 
              <dd>{$amount}</dd>
              <dt class="buypro_list2">所在地：</dt>
              <dd><span class="red">{area_pos($areaid, '')} </span></dd>
              <dt class="buypro_list3">浏览次数：</dt> 
              <dd>已有 <span id="hits">{$hits}</span> 人浏览</dd>
              <dt class="buypro_list4">采购商：</dt>
              <dd>{$company}</dd>
            </dl>
            {if $username && !$expired}
            <ul class="clearfix mt15 ml20 f14 goo">
              <li class="btn-msg02"><a target="_blank" alt="立即报价" onclick="Go('{$MOD[linkurl]}{rewrite('price.php?itemid='.$itemid)}');"/>立即报价</a></li>
               <li class="too"><i class="btn-tel02"></i><a target="_blank" href="#lx"><b>联系采购商</b></a></li>
            </ul>
            {/if} </div>
        </div>
        <div class="buydetail"> {if $CP}{template 'property', 'chip'}{/if}
          <h3 class="clearfix"><span class="fl">产品描述</span></h3>
          <ul class="clearfix infoList">
            {if $n1 && $v1}
            <li> <span>{$n1}：</span>{$v1} </li>
            {/if}
            
            {if $n2 && $v2}
            <li> <span>{$n2}：</span>{$v2} </li>
            {/if}
            
            {if $n3 && $v3}
            <li> <span>{$n3}：</span>{$v3} </li>
            {/if}
            <li> <span>要求价格：</span>{if $price}{$price}{else}面议{/if}</li>
            <li> <span>包装要求：</span>{$pack} </li>
            <li> <span>关键词：</span>{$head_keywords} </li>
            <li> <span>采购商：</span>{$member[company]} </li>
          </ul>
          {if $CP}{template 'property', 'chip'}{/if}
          <div id="content">{$content}</div>
          <h3 class="clearfix mt-15" id="lx"><span class="fl">联系采购商</span></h3>
          <div class="attribute">
            <ul id="contact">
              {template 'contact-buy', 'chip'}
            </ul>
             {if !$username} <br/>
              &nbsp;<strong class="f_red">注意</strong>:发布人未在本站注册，建议优先选择<a href="{$MODULE[2][linkurl]}grade.php"><strong>{VIP}会员</strong></a> {/if}
          </div>
          {if in_array(6, explode(',', $EXT['comment_module']))}
          <h3 class="clearfix mt-15"><span class="fl">相关评论</span>
          <a class="fr" href="{$EXT[comment_url]}{rewrite('index.php?mid=6&itemid='.$itemid)}">共
            <span1 id="comment_count">0</span1> 条 [查看全部]</a></h3>
          {template 'comment', 'chip'}
          
          
          
          {/if} </div>
      </div>
      <div class="box01 mt-15">
        <div class="header">
          <h3>热门推荐</h3>
        </div>
        <div class="rocembar"> 
          
          <!--{tag("moduleid=$moduleid&length=60&condition=status=3&areaid=$cityid&pagesize=12&order=edittime desc&target=_blank&datetype=3&template=cainiao-buy-hot", -2)}--> 
           
          
        </div>
      </div>
    </div>
    <div class="sideBar fr">
       
      <div class="box01 mt-15">
        <div class="header">
          <h3>最新采购</h3>
        </div>
        <div class="purshow"><!--{tag("moduleid=6&length=30&condition=status=3&areaid=$cityid&pagesize=8&order=edittime desc&target=_blank&class=orang&showcat=1&template=xiaohei-buy_new", -2)}--> 
          
        </div>
      </div>
      <div class="mt-15"> <a href="/" target="_blank">{ad(28)}</a></div>
      <div class="box01 mt-15">
        <div class="header">
          <h3>采购排行</h3>
        </div>
        <div class="purshow"><!--{tag("moduleid=6&length=30&condition=status=3&areaid=$cityid&pagesize=8&order=hits desc&target=_blank&showcat=1&template=list", -2)}--> 
          
        </div>
      </div>
      <div class="news-pro fl mt15" style="overflow:hidden; ">
      
        <p class="com-tit f15">最新产品</p>
        
         <!--{tag("moduleid=5&length=20&condition=status=3 and thumb<>''&pagesize=8&order=edittime desc&template=cainiao-sell-show")}--> 
        
      </div>
    </div>

</div>
 

<div class="m">
	<br/>
	<center>
	[ <a href="{$MOD[linkurl]}search.php" rel="nofollow">{$MOD[name]}搜索</a> ]&nbsp;
	[ <a href="javascript:SendFav();">加入收藏</a> ]&nbsp;
	[ <a href="javascript:SendPage();">告诉好友</a> ]&nbsp;
	[ <a href="javascript:Print();">打印本文</a> ]&nbsp;
	[ <a href="javascript:SendReport();">违规举报</a> ]&nbsp;
	[ <a href="javascript:window.close()">关闭窗口</a> ]
	</center>
	<br/>
</div>
<script type="text/javascript" src="{DT_STATIC}file/script/album.js"></script>
{if $content}<script type="text/javascript" src="{DT_STATIC}file/script/content.js"></script>{/if}
{template 'footer'}